package cn.fuck;

import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Stream;

public class TestLimitAndConcat {
    public static void main(String[] args) throws IOException {
        Stream<Double> doubleStream;
        doubleStream = Stream.generate(Math::random);
        Tool.uShow("limited 5: ", doubleStream.limit(5));

        Stream<String> concatStream = Stream.concat(
                ChangeStreamByMap.letters("Hello"),
                ChangeStreamByMap.letters("World")
        );
        Tool.uShow("concat: ", concatStream);
    }
}
